package com.ruiyian.system.service.impl;

import com.ruiyian.system.domain.Document;
import com.ruiyian.system.mapper.DocumentMapper;
import com.ruiyian.system.service.DocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2022/6/20
 * Desc: 文件档案
 */
@Service
public class DocumentServiceImpl implements DocumentService {
    @Autowired
    private DocumentMapper documentMapper;

    @Override
    public List<Document> list(Document document) {
        return documentMapper.list(document);
    }

    @Override
    public void save(Document document) {
        documentMapper.save(document);
    }

    @Override
    public void updateName(Document document) {
        documentMapper.updateName(document);
    }

    @Override
    public void delete(Long id) {
        documentMapper.delete(id);
    }
}
